//
//  NSUserDefaults+SLSDK.m
//  SLSDK
//
//  Created by SongLian on 16/8/7.
//  Copyright © 2016年 SongLian. All rights reserved.
//

#import "NSUserDefaults+SLSDK.h"

@implementation NSUserDefaults (SLSDK)

+ (id)sl_objectForKey:(NSString *)key {
    return [[NSUserDefaults standardUserDefaults] objectForKey:key];
}

+ (void)sl_setObject:(id)object forKey:(NSString *)key {
    [[NSUserDefaults standardUserDefaults] setObject:object forKey:key];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

+ (void)sl_setInteger:(NSInteger)integer forKey:(NSString *)key {
    [[NSUserDefaults standardUserDefaults] setInteger:integer forKey:key];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

+ (NSInteger)sl_integerForKey:(NSString *)key {
    return [[NSUserDefaults standardUserDefaults] integerForKey:key];
}

@end
